package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.comment.domain.StrategyComment;
import cn.wolfcode.luowowo.comment.query.StrategyCommentQueryObject;
import org.springframework.data.domain.Page;

/**
 * 攻略评论服务
 */
public interface IStrategyCommentService {
    /**
     * 新增或编辑评论
     * @param strategyComment
     */
    void saveOrUpdate(StrategyComment strategyComment);

    /**
     * 查询评论
     * @param qo
     * @return
     */
    Page<StrategyComment> query(StrategyCommentQueryObject qo);

    /**
     * 点赞功能
     * @return
     */
    boolean thumbUp(String toid, Long fromid);
}
